package cn.itcast.dao;

import cn.itcast.domain.Member;

import java.util.List;
import java.util.Map;

public interface MemberMapper {

    Member findByTelephone(String telephone);

    void add(Member member);

    Integer findMemberCountBeforeDate(String m);

    Integer findMemberCountByDate(String today);

    Integer findMemberTotalCount();

    Integer findMemberCountAfterDate(String thisWeekMonday);

    void insertMember(Member member);

    Member findMemberById(Integer id);

    List<Member> findMemberByPage(String queryString);

    void deleteMember(Integer id);

    void updateMember(Member member);

    Integer findByNull();

    Integer findBySex1();

    Integer findBySex2();

    List<Map<String, Object>> findGenderCount();

    Integer findByAge1();

    Integer findByAge2();

    Integer findByAge3();

    Integer findByAge4();

    //男女比例饼状图

}
